package serverMessage;

import time.LogicalTimeStamp;

public class FindNeighborMessage extends ServerMessage {
	private static final long serialVersionUID = 1053333778871716354L;
	private String srcIP;
	private double srcLongitude;
	private double srcLatitude;
	private int srcRoundNumber;
	
	public FindNeighborMessage(LogicalTimeStamp msgTS, String ip,
			double longitude, double latitude, int round) {
		super(ServerMessage.FIND_NEIGHBOR, msgTS);
		
		srcIP = ip;
		srcLongitude = longitude;
		srcLatitude = latitude;
		srcRoundNumber = round;
	}

	public String getSrcIP(){
		return srcIP;
	}
	
	public double getLongitude(){
		return srcLongitude;
	}
	
	public double getLatitude(){
		return srcLatitude;
	}
	
	public int getRoundNumber(){
		return srcRoundNumber;
	}
}
